var exec = require('child_process').exec;
//exec('ls', function(err, stdout, stderr){
//    if (err) {
//        console.log('child process exited with error code ' + err.code);
//        return;
//    }
//    console.log(stdout);
//});

//var spawn = require('child_process').spawn;
//var child = spawn('cd', ['-f', '/var/log/system.log']);
//child.stdout.on('data', function(data){
//    console.log('stdout: ' + data);
//});
//
//child.on('exit', function(){
//	console.log('child process exit');
//})
//
//child.on('err', function(err){
//	console.log(err)
//})
var filepath = '/tmp/1365753482765.flv'
var cmd = 'ffmpeg -i ' + filepath + ' -vn /tmp/1365753482765.mp3';
var child = exec(cmd, function(err, stdout, stderr){
	console.log('finish')
})